import org.junit.Test;
import static org.junit.Assert.*;


public class test2 {
	private int often=1;
	private int erwarteterWert = 666;
	@Test
	public void testMain() {
//		String[] s = new String[]{"..\\testsuite\\milliongraph_1.xml"}; erwarteterWert=1;
//		String[] s= 	new String[]{"..\\testsuite\\multiple\\graph03_a.xml","..\\testsuite\\multiple\\graph03_b.xml","..\\testsuite\\multiple\\graph03_c.xml"}; erwarteterWert= 7;
//		String[] s= 	new String[]{"..\\testsuite\\multiple\\graph02_a.xml","..\\testsuite\\multiple\\graph02_b.xml"}; erwarteterWert= 3;
//		String[] s= 	new String[]{"..\\testsuite\\multiple\\mist\\graph02.xml"}; erwarteterWert= 3;
//		String[] s = new String[]{"..\\testsuite\\spice\\graph04.xml"}; erwarteterWert=3; 
//		String[] s = new String[]{"..\\testsuite\\speed\\graph17.xml","3"}; erwarteterWert= 53;
//		String[] s = new String[]{"..\\testsuite\\speed\\graph18.xml", "5"}; erwarteterWert=  72;
//		String[] s = new String[]{"/home/govinda/uni/NP/projekt/testsuite/speed/graph18.xml"}; // 72
//		String[] s = new String[]{"/home/govinda/uni/NP/projekt/testsuite/speed/graph00.xml"}; // 8
		String[] s = new String[]{"/home/govinda/uni/NP/projekt/testsuite/crack/germany.xml"}; erwarteterWert = 666;
//		String[] s = new String[]{"/home/govinda/uni/NP/projekt/testsuite/file.xml"}; // 666
//		String[] s = new String[]{"..\\testsuite\\crack\\germany.xml"};
//		String[] s = new String[]{"/tmp/Milchstrasse_generated_4708.xml"}; erwarteterWert = 4708;
//		String[] s = new String[]{"/tmp/Atom_50000Knoten_100000Kanten_43546.xml"}; erwarteterWert = 43546;
//		String[] s = new String[]{"/home/govinda/uni/NP/projekt/testsuite/mil_1.xml"}; erwarteterWert = 1;
//		String[] s = new String[]{"/home/govinda/uni/NP/projekt/testsuite/100099_nodes_res_5034.xml"}; erwarteterWert = 5034;
//		String[] s = new String[]{"/home/govinda/uni/NP/projekt/testsuite/Galaxie_generated_6589.xml"}; erwarteterWert = 6589;
		
		tryIt(s);
		System.out.println("test complete");
	}


	public void tryIt(String[] s){
		for(int i =0; i<often; i++){	
			netz2135 netz = new netz2135();
			netz.main(s);
			System.out.println("Versuch: "+(i+1));
			assertEquals( erwarteterWert , netz.getRes());			
		}
	}


}
